#ifndef _TCHARSUPPORT_H_
#define _TCHARSUPPORT_H_

#include <string>
#include <iostream>
#include <sstream>
#include <fstream>

using namespace std;


#ifdef UNICODE


#define		t( str )		L##str
#define		tcout			wcout

typedef		wchar_t			tchar;
typedef		wstring			tstring;
typedef		wistream		tistream;
typedef		wostream		tostream;

#define		tstrlen			wcslen
#define		tstrcpy			wcscpy


#else


#define		t( str )		str
#define		tcout			cout

typedef		char			tchar;
typedef		string			tstring;
typedef		istream			tistream;
typedef		ostream			tostream;

#define		tstrlen			strlen


#endif // UNICODE


#endif // _TCHARSUPPORT_H_